var express = require('express');
var router = express.Router();

/*
 * @Author: 岸舟
 * @Date: 2020-09-18 17:55:09
 * @LastEditors: MiNine
 * @LastEditTime: 2020-09-23 20:14:23
 * @Description: 定义了二级路径及方法名
 */
const {
    addCompensation,
    delCompensation,
    modClaim,
    getCompensations,
    modCompensation,
    getClaims,
    updateClaim
} = require('../controllers/claimOrderCon');

const {
    permission159
} = require('../utils/permissionVerify');

router.post('/addCompensation', permission159, addCompensation);
router.post('/modClaim', permission159, modClaim);
router.post('/modCompensation', permission159, modCompensation);
router.post('/getClaims', permission159, getClaims);
router.get('/getCompensations', permission159, getCompensations);
router.post('/delCompensation', permission159, delCompensation);
router.post('/updateClaim', permission159, updateClaim);

module.exports = router;